<div class="wills view">
<h2><?php  __('Will');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $will['Will']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Program'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($will['Program']['what'], array('controller' => 'programs', 'action' => 'view', $will['Program']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('I Will'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $will['Will']['i_will']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('How'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $will['Will']['how']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('When Date'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $will['Will']['when_date']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Will', true), array('action' => 'edit', $will['Will']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Will', true), array('action' => 'delete', $will['Will']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $will['Will']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Wills', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Will', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Programs', true), array('controller' => 'programs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Program', true), array('controller' => 'programs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Will Messages', true), array('controller' => 'will_messages', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Will Message', true), array('controller' => 'will_messages', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Will Schedules', true), array('controller' => 'will_schedules', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Will Schedule', true), array('controller' => 'will_schedules', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Will Messages');?></h3>
	<?php if (!empty($will['WillMessage'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Will Id'); ?></th>
		<th><?php __('Message'); ?></th>
		<th><?php __('Msg Date'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($will['WillMessage'] as $willMessage):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $willMessage['id'];?></td>
			<td><?php echo $willMessage['will_id'];?></td>
			<td><?php echo $willMessage['message'];?></td>
			<td><?php echo $willMessage['msg_date'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'will_messages', 'action' => 'view', $willMessage['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'will_messages', 'action' => 'edit', $willMessage['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'will_messages', 'action' => 'delete', $willMessage['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $willMessage['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Will Message', true), array('controller' => 'will_messages', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Will Schedules');?></h3>
	<?php if (!empty($will['WillSchedule'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Will Id'); ?></th>
		<th><?php __('Schedule Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($will['WillSchedule'] as $willSchedule):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $willSchedule['id'];?></td>
			<td><?php echo $willSchedule['will_id'];?></td>
			<td><?php echo $willSchedule['schedule_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'will_schedules', 'action' => 'view', $willSchedule['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'will_schedules', 'action' => 'edit', $willSchedule['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'will_schedules', 'action' => 'delete', $willSchedule['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $willSchedule['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Will Schedule', true), array('controller' => 'will_schedules', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
